﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;

using log4net;

namespace kindly
{
    public class LoggingPage : Page
    {
        private static readonly ILog log = LogManager.GetLogger(typeof(LoggingPage));

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            log.DebugFormat("New {0} request for {1} from {2}",
                Request.RequestType,
                Request.RawUrl,
                Request.UserHostAddress);
        }
    }
}